<?php
header("Content-type: text/html; charset=utf-8");
header("Access-Control-Allow-Origin: *");

if(file_exists("data_small_api.json")){

    if(isset($_GET["re_topo"])){
?>


        <!DOCTYPE html>
        <html>
        <head>
            <meta charset="utf-8">
            <title></title>
            <link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css" media="screen" title="no title" charset="utf-8">
            <script type="text/javascript" src="lib/js/jquery.min.js"></script>
            <script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
            <script type="text/javascript" src="lib/js/index.js">
            </script>
        </head>
        <body>
        <div class="container-fluid">


            <div class="col-xs-6" style="height:30px;">
                <a class="btn btn-default topo">生成图片</a>

            </div>


            <div class="col-xs-12 main" style="margin-top: 20px;">
                <div class="col-xs-12 server_info progress hidden" style="height:30px;">
                </div>


                <div class="col-xs-12 info progress hidden" style="height:30px;">
                </div>

                <div class="col-xs-12 go progress progress-bar progress-bar-striped active hidden" style="height:30px;">
                </div>

                <div class="col-xs-12 go_snmp progress hidden" style="height:30px;">
                </div>

                <div class="col-xs-12 go_info progress hidden"  style="height: 200px;">
                </div>

            </div>

            <div class="bg">

            </div>

        </div>
        </body>
        </html>



        <script>
            $(function(){
                $(".topo").trigger("click");
            })

        </script>




<?php

    }else {

        echo "<script> window .location.href=\"lib/ImageC/index.html\";</script>";
    }
}else{
?>


    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <link rel="stylesheet" href="lib/bootstrap/css/bootstrap.min.css" media="screen" title="no title" charset="utf-8">
        <script type="text/javascript" src="lib/js/jquery.min.js"></script>
        <script type="text/javascript" src="lib/bootstrap/js/bootstrap.min.js"></script>
        <script type="text/javascript" src="lib/js/index.js">
        </script>
    </head>
    <body>
    <div class="container-fluid">


        <div class="col-xs-6" style="height:30px;">
            <a class="btn btn-default topo">生成图片</a>

        </div>


        <div class="col-xs-12 main" style="margin-top: 20px;">
            <div class="col-xs-12 server_info progress hidden" style="height:30px;">
            </div>


            <div class="col-xs-12 info progress hidden" style="height:30px;">
            </div>

            <div class="col-xs-12 go progress progress-bar progress-bar-striped active hidden" style="height:30px;">
            </div>

            <div class="col-xs-12 go_snmp progress hidden" style="height:30px;">
            </div>

            <div class="col-xs-12 go_info progress hidden"  style="height: 200px;">
            </div>

        </div>

        <div class="bg">

        </div>

    </div>
    </body>
    </html>

<?php
}
    ?>




